package com.taotao.complier.calcu.lex;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 词法单元：<种别码,属性值>
 *
 * @author fanbeibei
 * @date 2021/1/4 20:58
 */
@Getter
@AllArgsConstructor
public class Token {
    /**
     * 属性值
     */
    private String val;

    /**
     * 种别码
     */
    private WordType wordType;

    @Override
    public String toString() {
        return "Token{" +
                "val='" + val + '\'' +
                ", wordType=" + wordType +
                '}';
    }

}
